<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

class Browser_check
{
  ///<summary>Halaman ini mengecek user agent client. Bila ketemon ie6 -> kick</summary>
  public function checkUserAgent()
  {
    $ua = $_SERVER['HTTP_USER_AGENT'];
    if (strpos($ua,'MSIE') != false && strpos($ua,'Opera') === false)
    {
     if (strpos($ua,'Windows NT 5.2') != false)
     {
      if(strpos($ua,'.NET CLR') === false) return;
     }
     if (substr($ua,strpos($ua,'MSIE')+5,1) < 7)
     {
      redirect('change-your-browser', 'location');
     }
    }
  }
}